Integrand size = 25, antiderivative size = 371 \[ \int \sqrt {\sin (c+d x)} \sqrt {a+b \sin (c+d x)} \, dx=-\frac {\cos (c+d x) \sqrt {a+b \sin (c+d x)}}{d \sqrt {\sin (c+d x)}}+\frac {(a-b) \sqrt {a+b} \sqrt {\frac {a (1-\csc (c+d x))}{a+b}} \sqrt {\frac {a (1+\csc (c+d x))}{a-b}} E\left (\arcsin \left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b} \sqrt {\sin (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \tan (c+d x)}{a d}-\frac {\sqrt {a+b} \sqrt {\frac {a (1-\csc (c+d x))}{a+b}} \sqrt {\frac {a (1+\csc (c+d x))}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b} \sqrt {\sin (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \tan (c+d x)}{d}+\frac {a \sqrt {a+b} \sqrt {\frac {a (1-\csc (c+d x))}{a+b}} \sqrt {\frac {a (1+\csc (c+d x))}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b} \sqrt {\sin (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \tan (c+d x)}{b d} \]
[Out]
Time = 0.40 (sec) , antiderivative size = 371, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {2900, 3133, 2888, 12, 2880, 2895, 3073} \[ \int \sqrt {\sin (c+d x)} \sqrt {a+b \sin (c+d x)} \, dx=-\frac {\sqrt {a+b} \tan (c+d x) \sqrt {\frac {a (1-\csc (c+d x))}{a+b}} \sqrt {\frac {a (\csc (c+d x)+1)}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b} \sqrt {\sin (c+d x)}}\right ),-\frac {a+b}{a-b}\right )}{d}+\frac {(a-b) \sqrt {a+b} \tan (c+d x) \sqrt {\frac {a (1-\csc (c+d x))}{a+b}} \sqrt {\frac {a (\csc (c+d x)+1)}{a-b}} E\left (\arcsin \left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b} \sqrt {\sin (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{a d}+\frac {a \sqrt {a+b} \tan (c+d x) \sqrt {\frac {a (1-\csc (c+d x))}{a+b}} \sqrt {\frac {a (\csc (c+d x)+1)}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b} \sqrt {\sin (c+d x)}}\right ),-\frac {a+b}{a-b}\right )}{b d}-\frac {\cos (c+d x) \sqrt {a+b \sin (c+d x)}}{d \sqrt {\sin (c+d x)}} \]
[In]
[Out]
Rule 12
Rule 2880
Rule 2888
Rule 2895
Rule 2900
Rule 3073
Rule 3133
Rubi steps \begin{align*} \text {integral}& = -\frac {\cos (c+d x) \sqrt {a+b \sin (c+d x)}}{d \sqrt {\sin (c+d x)}}+\frac {\int \frac {-\frac {a b}{2}+\frac {1}{2} a b \sin ^2(c+d x)}{\sin ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sin (c+d x)}} \, dx}{b} \\ & = -\frac {\cos (c+d x) \sqrt {a+b \sin (c+d x)}}{d \sqrt {\sin (c+d x)}}+\frac {1}{2} a \int \frac {\sqrt {\sin (c+d x)}}{\sqrt {a+b \sin (c+d x)}} \, dx+\frac {\int -\frac {a b}{2 \sin ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sin (c+d x)}} \, dx}{b} \\ & = -\frac {\cos (c+d x) \sqrt {a+b \sin (c+d x)}}{d \sqrt {\sin (c+d x)}}+\frac {a \sqrt {a+b} \sqrt {\frac {a (1-\csc (c+d x))}{a+b}} \sqrt {\frac {a (1+\csc (c+d x))}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b} \sqrt {\sin (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \tan (c+d x)}{b d}-\frac {1}{2} a \int \frac {1}{\sin ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sin (c+d x)}} \, dx \\ & = -\frac {\cos (c+d x) \sqrt {a+b \sin (c+d x)}}{d \sqrt {\sin (c+d x)}}+\frac {a \sqrt {a+b} \sqrt {\frac {a (1-\csc (c+d x))}{a+b}} \sqrt {\frac {a (1+\csc (c+d x))}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b} \sqrt {\sin (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \tan (c+d x)}{b d}+\frac {1}{2} a \int \frac {1}{\sqrt {\sin (c+d x)} \sqrt {a+b \sin (c+d x)}} \, dx-\frac {1}{2} a \int \frac {1+\sin (c+d x)}{\sin ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sin (c+d x)}} \, dx \\ & = -\frac {\cos (c+d x) \sqrt {a+b \sin (c+d x)}}{d \sqrt {\sin (c+d x)}}+\frac {(a-b) \sqrt {a+b} \sqrt {\frac {a (1-\csc (c+d x))}{a+b}} \sqrt {\frac {a (1+\csc (c+d x))}{a-b}} E\left (\arcsin \left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b} \sqrt {\sin (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \tan (c+d x)}{a d}-\frac {\sqrt {a+b} \sqrt {\frac {a (1-\csc (c+d x))}{a+b}} \sqrt {\frac {a (1+\csc (c+d x))}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b} \sqrt {\sin (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \tan (c+d x)}{d}+\frac {a \sqrt {a+b} \sqrt {\frac {a (1-\csc (c+d x))}{a+b}} \sqrt {\frac {a (1+\csc (c+d x))}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b} \sqrt {\sin (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \tan (c+d x)}{b d} \\ \end{align*}
Result contains complex when optimal does not.
Time = 27.53 (sec) , antiderivative size = 10847, normalized size of antiderivative = 29.24 \[ \int \sqrt {\sin (c+d x)} \sqrt {a+b \sin (c+d x)} \, dx=\text {Result too large to show} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 5.26 (sec) , antiderivative size = 8415, normalized size of antiderivative = 22.68
[In]
[Out]
Timed out. \[ \int \sqrt {\sin (c+d x)} \sqrt {a+b \sin (c+d x)} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \sqrt {\sin (c+d x)} \sqrt {a+b \sin (c+d x)} \, dx=\int \sqrt {a + b \sin {\left (c + d x \right )}} \sqrt {\sin {\left (c + d x \right )}}\, dx \]
[In]
[Out]
\[ \int \sqrt {\sin (c+d x)} \sqrt {a+b \sin (c+d x)} \, dx=\int { \sqrt {b \sin \left (d x + c\right ) + a} \sqrt {\sin \left (d x + c\right )} \,d x } \]
[In]
[Out]
Exception generated. \[ \int \sqrt {\sin (c+d x)} \sqrt {a+b \sin (c+d x)} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Timed out. \[ \int \sqrt {\sin (c+d x)} \sqrt {a+b \sin (c+d x)} \, dx=\int \sqrt {\sin \left (c+d\,x\right )}\,\sqrt {a+b\,\sin \left (c+d\,x\right )} \,d x \]
[In]
[Out]